package sellComputer;

public class ComputerStore {
	public static void main(String[] args) {
		IntelCpu intelCpu = new IntelCpu("i5", 4, 1800);
		KingstonMem kingstonMem = new KingstonMem("ksm", 1, 1000);
		SeagateHD seagateHd = new SeagateHD("sghd", 2, 1400);
		GigabyteMB gigabyteMb = new GigabyteMB("gbmb", 4, 1800);
		Computer computer0 = new Computer("first", intelCpu, kingstonMem, seagateHd, gigabyteMb);
		computer0.sayWork(computer0);
		computer0.sayModule(computer0);
		computer0.totalMoney(computer0);
		computer0.printTotalMoney(computer0);
		System.out.println("it is " + computer0.getName() + " computer");
		System.out.println("----------------------");
		
		AMDCpu amdCpu1 = new AMDCpu("dragon", 6, 2000);
		KingstonMem kingstonMem1 = new KingstonMem("ksm", 1, 1000);
		SeagateHD seagateHd1 = new SeagateHD("sghd", 2, 1400);
		GigabyteMB gigabyteMb1 = new GigabyteMB("gbmb", 4, 1800);
		Computer1 computer1 = new Computer1("second", amdCpu1, kingstonMem1, seagateHd1, gigabyteMb1);
		computer1.sayWork(computer1);
		computer1.sayModule(computer1);
		computer1.totalMoney(computer1);
		computer1.printTotalMoney(computer1);
		System.out.println("it is " + computer1.getName() + " computer");
		System.out.println("----------------------");
		
		IntelCpu intelCpu2 = new IntelCpu("i5", 4, 1800);
		SamsungMem samsung2 = new SamsungMem("samsung", 1, 1500);
		SeagateHD seagateHd2 = new SeagateHD("sghd", 2, 1400);
		GigabyteMB gigabyteMb2 = new GigabyteMB("gbmb", 4, 1800);
		Computer2 computer2 = new Computer2("third", intelCpu2, samsung2, seagateHd2, gigabyteMb2);
		computer2.sayWork(computer2);
		computer2.sayModule(computer2);
		computer2.totalMoney(computer2);
		computer2.printTotalMoney(computer2);
		System.out.println("it is " + computer2.getName() + " computer");
		System.out.println("----------------------");
	}
}
